<%@ page language="java"  pageEncoding="UTF-8"%>
<%@ include file="/views/commons/taglibs.jsp" %>
<div class="panel-heading">
	<h3 class="panel-title">我举报的渠道商</h3>
</div>
<c:choose>
<c:when test="${!empty dataList && fn:length(dataList) ne 0}">
<table class="table">
	<thead>
		<tr>
			<th width="20%">渠道商</th>
			<th width="60%">举报项</th>
			<th width="10%">状态</th>
			<th width="10%">操作</th>
		</tr>
	</thead>
	<tbody>
		<c:forEach var="channel_gray" items="${dataList}" varStatus="index">
		<tr>
			<td class="title">
				${channel_gray.channelName}
			</td>
			<td>${channel_gray.grayInfo}</td>
			<td>
			<c:choose>
			<c:when test="${channel_gray.auditStatus==1}">
			待审核
			</c:when>
			<c:when test="${channel_gray.auditStatus==2}">
			审核通过
			</c:when>
			<c:when test="${channel_gray.auditStatus==3}">
			审核不通过
			</c:when>
			</c:choose>
			</td>
			<td>
			<c:if test="${channel_gray.auditStatus==1 || channel_gray.auditStatus==3 }">
			<a href="javascript:deleteChannelGray('${channel_gray.channelGrayId}')">删除</a>
			</c:if>
			</td>
		</tr>
		</c:forEach>
	</tbody>
</table>
<!-- 分页 -->
<p:pagination pageNo="${paramMap.pageNo}" pageCount="${paramMap.pageCount}" queryFunction="queryMyChannelGrayList" style="text-center"></p:pagination>
<!-- 分页 end -->
</c:when>
<c:otherwise>
	<table class="table">
		<thead>
			<tr>
				<th width="20%">渠道商</th>
				<th width="60%">举报项</th>
				<th width="10%">状态</th>
				<th width="10%">操作</th>
			</tr>
		</thead>
		<tbody>
			<tr>
				<td colspan="4" align="center">
					暂无数据
				</td>
			</tr>
		</tbody>
	</table>
</c:otherwise>
</c:choose>